<%@ Control Language="vb" Inherits="EfficionConsulting.Articles.ArticleList" codebehind="ArticleList.ascx.vb" autoeventwireup="false" %>
<asp:Label ID="lblSearchResults" Class="SubHead" Visible="False" Runat="server" />
<asp:Label ID="lblMessage" Runat="server" />
<asp:panel id="pnlModuleContent" Runat="server">
	<asp:DataList id="lstArticles" runat="server" EnableViewState="false" CellPadding="4" Width="100%">
		<SeparatorTemplate><%# ArticleSeparator %></SeparatorTemplate>
		<ItemTemplate>
			<div>
				<asp:Label id="lblCategory" class="SubHead" visible='<%# bShowCategory %>' style="color: maroon; float: right;" Runat="server" text='<%# DataBinder.Eval(Container.DataItem,"CategoryName") %>' />
				<asp:HyperLink id="editLink" runat="server" Visible="<%# IsEditable %>" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>' ImageUrl="~/images/edit.gif" />
				<asp:HyperLink class="Head" id="titleLink" runat="server" NavigateUrl='<%# GetReadMoreLink(DataBinder.Eval(Container.DataItem,"ItemID"),DataBinder.Eval(Container.DataItem,"Article").ToString) %>' text='<%# DataBinder.Eval(Container.DataItem,"Title") %>' />
			</div>
			<asp:Label ID="lblPendingApproval" runat="server" Visible='<%# not DataBinder.Eval(Container.DataItem,"Authed") %>' Text="Pending Approval<br />" class="NormalRed" />
			<asp:Label id="lblExpired" visible='<%# IsDBNull(DataBinder.Eval(Container.DataItem,"ExpireDate")) AND (Now >= DataBinder.Eval(Container.DataItem,"ExpireDate")) %>' class="NormalRed" runat="server" text='<%# "Expired: " & DataBinder.Eval(Container.DataItem,"ExpireDate").ToShortDateString %>' />
			<asp:Label id="lblPublishDate" visible='<%# IsEditable AND (Now < DataBinder.Eval(Container.DataItem,"PublishDate")) %>' class="NormalRed" runat="server" text='<%# "Publish Date: " & DataBinder.Eval(Container.DataItem,"PublishDate").ToShortDateString %>' />
			<div visible="<%# bShowImage and bShowDescription %>" >
				<asp:Image ID="imgArticleImage" runat="server" ImageURL='<%# GetImage(DataBinder.Eval(Container.DataItem,"ImageFile")) %>' visible='<%# bShowImage and ("" <> DataBinder.Eval(Container.DataItem,"ImageFile").ToString) %>' align="left" vspace="5" hspace="5" />
				<asp:Label id="lblDescription" class="Normal" runat="server" visible='<%# bShowDescription %>' text='<%# DataBinder.Eval(Container.DataItem,"Description") %>' />
				&nbsp;&nbsp;<asp:HyperLink id="lnkReadMore" class="NormalBold" runat="server" Visible='<%# bShowReadMore and ("" <> GetReadMoreLink(DataBinder.Eval(Container.DataItem,"ItemID"),DataBinder.Eval(Container.DataItem,"Article").ToString)) %>' NavigateUrl='<%# GetReadMoreLink(DataBinder.Eval(Container.DataItem,"ItemID"),DataBinder.Eval(Container.DataItem,"Article").ToString) %>' text="Read&nbsp;More..." />
			</div>
		</ItemTemplate>
	</asp:DataList>
</asp:panel>
<br />
<div style="font-weight: bold;font-size: 12px;text-align:right;"><asp:Hyperlink id="lnkMoreArticles" visible="false" text="More Articles..." runat="server" /></div>
<asp:panel id="pnlSearch" align="center" visible="false" runat="server">
	<asp:textbox id="txtSearch" runat="server" cssclass="NormalTextBox" Columns="30" maxlength="50" />&nbsp;
	<asp:linkbutton id="cmdSearch" runat="server" BorderStyle="none" Text="Search Articles" CssClass="CommandButton" />
</asp:panel>
<asp:linkbutton id="cmdReturn" align="center" visible="false" runat="server" CssClass="CommandButton" Text="Return" CausesValidation="False" />

